﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace ZR.Model.Dto.Business.ProductionControl {
    /// <summary>
    /// 代码生成查询对象
    /// </summary>
    public class CksAlarmMessageConfigQueryDto : PagerInfo {

        /// <summary>
        /// 报警信息
        /// </summary>
        public string Content { get; set; }


    }

    /// <summary>
    /// 代码生成输入输出对象
    /// </summary>
    public class CksAlarmMessageConfigDto {
        [Required(ErrorMessage = "报警记录ID不能为空")]
        [ExcelColumn(Name = "报警记录ID")]
        [ExcelColumnName("报警记录ID")]
        public int Id { get; set; }

        [ExcelColumn(Name = "PlcID")]
        [ExcelColumnName("PlcID")]
        public int? PlcID { get; set; }

        [ExcelColumn(Name = "数据块地址，eg：3002（db块）")]
        [ExcelColumnName("数据块地址，eg：3002（db块）")]
        public int? BlockAddr { get; set; }

        [ExcelColumn(Name = "报警地址，eg：2（具体那个word的偏移量）")]
        [ExcelColumnName("报警地址，eg：2（具体那个word的偏移量）")]
        public int? AlarmAddr { get; set; }

        [ExcelColumn(Name = "报警位索引，eg：0~15（word中的16个bit）")]
        [ExcelColumnName("报警位索引，eg：0~15（word中的16个bit）")]
        public int? AlarmBitIndex { get; set; }

        [ExcelColumn(Name = "报警级别 1：一般 2：警告 3：严重，这个字段数据过滤筛选")]
        [ExcelColumnName("报警级别 1：一般 2：警告 3：严重，这个字段数据过滤筛选")]
        public int? Level { get; set; }

        [ExcelColumn(Name = "中文语报警信息")]
        [ExcelColumnName("中文语报警信息")]
        public string MessageCn { get; set; }

        [ExcelColumn(Name = "西班牙语报警信息")]
        [ExcelColumnName("西班牙语报警信息")]
        public string MessageEs { get; set; }

        [ExcelColumn(Name = "英文语报警信息")]
        [ExcelColumnName("英文语报警信息")]
        public string MessageUs { get; set; }

        [ExcelColumn(Name = "创建时间", Format = "yyyy-MM-dd HH:mm:ss", Width = 20)]
        [ExcelColumnName("创建时间")]
        public DateTime? CreatDate { get; set; }


    }
}